import request from '@/router/axios'

export function fetchList(query) {
  return request({
    url: '/exam/rectifyReport/page',
    method: 'get',
    params: query
  })
}

export function addObj(obj) {
  return request({
    url: '/exam/rectifyReport',
    method: 'post',
    data: obj
  })
}

export function submit(obj) {
  return request({
    url: '/exam/rectifyReport/submit',
    method: 'post',
    data: obj
  })
}

export function saveSubmit(obj) {
  return request({
    url: '/exam/rectifyReport/saveSubmit',
    method: 'post',
    data: obj
  })
}

export function rejectSubmit(obj) {
  return request({
    url: '/exam/rectifyReport/rejectSubmit',
    method: 'post',
    data: obj
  })
}

export function approveSubmit(obj) {
  return request({
    url: '/exam/rectifyReport/approveSubmit',
    method: 'post',
    data: obj
  })
}

export function getObj(id) {
  return request({
    url: '/exam/rectifyReport/' + id,
    method: 'get'
  })
}

export function getRectifyReport(id) {
  return request({
    url: '/exam/rectifyReport/getRectifyReport/' + id,
    method: 'get'
  })
}

export function getRectifyReportByProjectId(id) {
  return request({
    url: '/exam/rectifyReport/getRectifyReportByProjectId/' + id,
    method: 'get'
  })
}

export function getDiscover(id) {
  return request({
    url: '/exam/rectifyReport/getDiscover/' + id,
    method: 'get'
  })
}

export function delObj(id) {
  return request({
    url: '/exam/rectifyReport/' + id,
    method: 'delete'
  })
}

export function putObj(obj) {
  return request({
    url: '/exam/rectifyReport',
    method: 'put',
    data: obj
  })
}

export function genRectifyReportWord(obj) {
  return request({
    url: '/exam/rectifyReport/genRectifyReportWord',
    method: 'post',
    data: obj
  })
}
